#include "Entity.h"
#include "../World/World.h"


namespace Facets {
	Entity::Entity(const core::vector3df& pos, const core::vector3df& dir) : 
		Object(pos, dir) {
		setTurnSpeed(40);
	}
	
	Entity::Entity(const core::vector3df& pos, const core::vector3df& dir, s32 ms) : 
		Object(pos, dir, ms) {
		setTurnSpeed(40);
	}
	
	Entity::Entity(const core::vector3df& pos, const core::vector3df& dir, s32 ms, s32 as, s32 ss) : 
		Object(pos, dir, ms, as, ss) {
		setTurnSpeed(40);
	}
	
	bool Entity::FocusCamera() {
		//Facets::World::GetCameraFactory()->CreateCamera(m_Position,m_Direction);
	}
	
	void Entity::setDirection(const core::vector3df& vec) {
		Object::setDirection(vec);
		m_Model->setDirection(vec);
	}

	void Entity::setPosition(const core::vector3df& vec) {
		Object::setPosition(vec);
		m_Model->setPosition(vec);
	}
	
	Entity::~Entity() {
		if(m_Model)
			delete m_Model;
	}
}
